// const { defineConfig } = require('@vue/cli-service')
const defaultSetting = require('./src/Settings.js')

let title = defaultSetting.title;

module.exports = {
  publicPath: '',
  outputDir: 'dist',
  assetsDir: 'static',
  lintOnSave: false,

  chainWebpack: config => {
    config.plugin('html').tap(args => {
      args[0].title = title;
      return args;
    });
  },
  configureWebpack: {
    resolve: {
      fallback:{
        fs: false,
        crypto: false
      }
    },
    externals: {
      './cptable': 'var cptable',
    },
  },
}
